import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import FastClick from 'fastclick'
import VueLazyLoad from 'vue-lazyload'

import toast from './components/common/toast';

Vue.config.productionTip = false

// 添加事件总线对象
Vue.prototype.$bus = new Vue() 

// 解决移动端300毫秒
FastClick.attach(document.body)

// 使用懒加载的插件
Vue.use(VueLazyLoad)

// 安装toast插件
Vue.use(toast)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
